# Author: lvin
user_data = ["LL","win","lucy"]
user_vip = ["vin","Gu","CC"]
user_data_password = "123456"
import time
username = input("请输入正确的账号：")
password = input("请输入正确的密码：")

if username in user_data or username in user_vip:
    if password == user_data_password:
        print("登陆成功，欢迎", username, "使用~")
    else:
        print("您的用户不存在或密码错误，请重新输入！")
        username = input("请输入正确的账号：")
        password = input("请输入正确的密码：")
        if username in user_data or username in user_vip:
            if password == user_data_password:
                print("登陆成功，欢迎", username, "使用~")

if username in user_data:
    print("欢迎，今天您有5次查询课表的机会！")
    print("请输入时间.为您推出您想要的课程表。 例如:2021-9-28")
    count = 6
    while True:
        count -= 1
        if count == 0:
            print("您今天的机会已用完，请明天再来，谢谢！")
            break
        else:
            print("您今天还有", count, "次机会")

            date = input("time: ")
            day = time.strptime(date, '%Y-%m-%d')
            week_time = int(time.strftime('%w', day))
            print("周" + str(week_time))
            if week_time == 1:
                print("3-5 Python语言");
                print("6-7 写作训练");
                print("8-10 毛概论");
                print("12-13 毛概实践")
            elif week_time == 2:
                print("1-2 羽毛球");
                print("8-10 网站运营");
                print("12-13 大英")
            elif week_time == 3:
                print("4-5 内部审计");
                print("12-14 创业基础实践")
            elif week_time == 4:
                print("4-5 大英");
                print("8-9 广告文案协作")
            else:
                print("无课")


else:
    print("尊贵的会员，今天您有10次查询课表的机会~~")
    count = 11
    while True:
        count -= 1
        if count == 0:
            print("抱歉！您今天的机会已用完，请明天再来，谢谢~")
            break
        else:
            print("您今天还剩", count, "次机会")

            date = input("time: ")
            day = time.strptime(date, '%Y-%m-%d')
            week_time = int(time.strftime('%w', day))
            print("周" + str(week_time))
            if week_time == 1:
                print("3-5 Python语言");
                print("6-7 写作训练");
                print("8-10 毛概论");
                print("12-13 毛概实践")
            elif week_time == 2:
                print("1-2 羽毛球");
                print("8-10 网站运营");
                print("12-13 大英")
            elif week_time == 3:
                print("4-5 内部审计");
                print("12-14 创业基础实践")
            elif week_time == 4:
                print("4-5 大英");
                print("8-9 广告文案协作")
            else:
                print("无课")


